package com.example.societiesSystem.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.societiesSystem.common.R;
import com.example.societiesSystem.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author gl
 * @since 2025-05-21
 */
public interface IUserService extends IService<User> {


    R login(User user);

    R emailLogin(Map<String, String> map);


    IPage<User> pageAll(Long pageIndex, Long pageSize, String userName, String name);

    boolean batchInsert(List<User> list);

    String getNameById(Long id);
}
